package com.heatingcharge.controller.pay;
import com.heatingcharge.common.util.R;
import com.heatingcharge.param.ChargeInfoParam;
import com.heatingcharge.service.pay.IPayInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 支付信息表 前端控制器
 * </p>
 *
 * @author devin.jiang
 * @since 2019-12-20
 */
@RestController
@RequestMapping("/pay-info")
public class PayInfoController {

    @Autowired
    IPayInfoService payInfoService;

    @PostMapping()
    public R save(@RequestBody ChargeInfoParam chargeInfoParam){
        return R.ok(payInfoService.add(chargeInfoParam));
    }

}

